package task2;

public class CyclicBufferWithLockApplication {

	public static void main(String[] args) {
		CyclicBufferWithLock<String> buffer = new CyclicBufferWithLock<String>();
		
        (new Thread(new Producer(1, buffer, "GOODS"))).start();
        (new Thread(new Producer(2, buffer, "MAIL"))).start();
        (new Thread(new Producer(3, buffer, "PASSENGERS"))).start();
        (new Thread(new Consumer(1, buffer))).start();
        (new Thread(new Consumer(2, buffer))).start();
	}
}